import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPetTitleHelper } from "./SeqPetTitleHelper";
type int = number;
//class SSeqPetTitle
    
    export  class SSeqPetTitle extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SSeqPetTitle();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeString(this.petUid);
            SeqPetTitleHelper.write(arg1, this.titles);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.petUid = arg1.readString();
            this.titles = SeqPetTitleHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12440;

        public /* var */petUid: string;

        public /* var */titles: Array<any>;

        public static /* var */_regist: SSeqPetTitle;
    }

            SSeqPetTitle._regist = new SSeqPetTitle(true);
        